package cn.edu.scau.cmi.liguanwu.abstractFactory;

public abstract class MEAT {
	public static final String PORK = "pork";
	public static final String BEEF = "beef";
	public static final String CHICKEN = "chicken";
	public abstract Wens getWens();
	public abstract Tianbang getTianbang();
	public abstract Aonong getAonong();
	public static MEAT getmeattype(String type) {
		MEAT f = null;
		if(type.equals(MEAT.BEEF)) f = new beefFactory();
		else if(type.equals(MEAT.PORK)) f = new porkFactory();
		else if(type.equals(MEAT.CHICKEN)) f = new chickenFactory();
		return f;
	}
}
